package com.jfcloud.mall.order.rpc.feign;

import com.jfcloud.common.constants.ServiceNames;
import com.jfcloud.common.http.RespData;
import com.jfcloud.common.http.RespDataT;
import com.jfcloud.mall.order.domain.dto.StorageDeductForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhaojunfu
 * @Title: StorageServiceClient
 * @ProjectName jfcloud
 * @Description: 库存服务
 * @date 2020/9/1311:41
 */
@FeignClient(name = ServiceNames.mall_storage)
public interface StorageServiceClient {

    @PostMapping(path = "/storage/deductStorage",consumes = "application/json", produces = "application/json")
    @ResponseBody
    RespData deductStorage(@RequestBody StorageDeductForm form);
}
